<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>订单成功 - 爽客网</title>
<%@include file="../common/js.jsp" %>
<%@include file="../common/css.jsp" %>
<link href="/css/detail.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<%@include file="../common/header.jsp" %>
	<div class="wrap">
    	<div class="w980 mg mt10">
            <div <c:if test="${order.payFrom=='01' }">class="bank_pay_tip"</c:if><c:if test="${order.payFrom=='02' }">class="no_pay_finish"</c:if> ></div>
            <div class="f_order_title pay_sorts">
            	<span class="fl">预订：</span><i class="fl">${order.pname}</i>
            </div>
            <!-- content -->
            <div class="pay_order_box mb10 clearfix">
           		<div class="tip">
                	<s class="f_orderbg"></s>
                	<span class="sucess mb5">
                		<c:if test="${order.payFrom=='01' }">订单提交成功， 请选择以下支付方式支付订单！</c:if>
                		<c:if test="${order.payFrom=='02' }">订单提交成功， 等待确认！</c:if>
                	</span>
                    <span class="clrred">
                    	<c:if test="${order.payFrom=='01' }">注：请于20分钟内完成支付，逾期订单将失效</c:if>
                    	<c:if test="${order.payFrom=='02' }">注：确认完成后，会给您发送确认短信，请注意查收。</c:if>
                    </span>
                </div>
                <c:if test="${order.payFrom=='01' }"><span class="pay_price">应付总额：<i class="farial">¥${order.totalFee}</i></span></c:if>
            </div>
            <!-- online-pay-->
            <c:if test="${order.payFrom == '01'}">
            	 <div class="online_pay_box mb10">
		            	<ul class="online_paysorts clearfix">
		                	<li class="current">
		                    	<a href="javascript:;">在线支付</a>
		                    </li><%--
		                    <li>
		                    	<a href="#">电话支付</a>
		                    </li>
		                --%></ul>
		                <div class="detail">
		                    
		                    <!-- payway-other-->
		                    <div class="pay_sorts_box">
		                    	<p class="title openbg">支付平台支付</p>
		                        <ul class="mt10 clearfix other_ul">
		                        	<li class="clearfix">
		                            	<input type="radio" name="banks" value="alipay" checked="checked"/>
		                                <img src="images/smallpic/alipay.gif" />
		                                <p class="fl">
		                                	<%-- <span class="block">支付宝：中国最大的第三方电子支付平台。网上支付 安全快速！</span> --%>
		                                	<a href="http://fun.alipay.com/miandan/index.htm"><font color="red"></>支付宝支付赢2000元免单</font></a>
		                                </p>
		                            </li>
		                           
		                        </ul>
		                    </div>
		                    <!--payway--other--end-->
		                    
		                    <div class="payway_submit">
		                    	<a href="javascript:;" onclick="alipayto()" class="f_orderbg">下一步</a>
		                    </div>
		                </div>
		            </div>
            </c:if>
           
            <!-- online-pay--end-->
            <div>
            
            </div>
            <table class="c_order_detail">
            	<tr class="row1">
                	<td width="100"><span>订单号</span></td>
                    <td width="360"><span>名称</span></td>
                    <td width="100"><span>订单金额</span></td>
                    <td>
	                    <span>
	                    	<c:if test="${order.type=='01' }">游玩日期</c:if>
	                    	<c:if test="${order.type=='02' }">入住日期</c:if>
	                    	<c:if test="${order.type=='03' }">订购日期</c:if>
	                    </span>
                    </td>
                </tr>
                <tr class="data_row">
                	<td width="100">${order.id}</td>
                    <td width="360">
                    <c:forEach items="${order.opList}" var="orderProduct">
                    	<p>${orderProduct.pname}     <i class=" clrc06 ml15 farial">× ${orderProduct.amount}</i></p>
                    </c:forEach>
                   </td>
                    <td width="100"><i class="farial">¥${order.totalFee}</i></td>
                    <td>${order.orderTime}</td>
                </tr>
            </table>
            <!-- content--end-->
        </div>
    </div>
    
        <!-- foot-->
	    <%@include file="../common/footer.jsp" %>
	    <!-- foot--end-->
    <script type="text/javascript">
    	
    	function alipayto(){
    		var showUrl = "ticket.htm?id=${ticket.id}";
    		if('${order.type}'=='01'){
    			showUrl = "ticket.htm?id=${order.pid}"
    		}else if('${order.type}'=='02'){
    			showUrl = "hotel.htm?rid=${order.pid}"
    		}else if('${order.type}'=='03'){
    			showUrl = "product.htm?id=${order.pid}"
    		}
    		var successUrl = "payOrderSuc.htm";
    		var failUrl = "payOrderFail.htm";
    		var url = "alipayto.htm?orderNum=${order.id}&showUrl="+encodeURIComponent(showUrl);
    		window.open(url);
    	}
    </script>
</body>
</html>
